package com.xjoyt.pay.master.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.gateway.params.CashParam;
import com.xjoyt.pay.master.params.CashDetailPageParam;
import com.xjoyt.pay.master.params.MerchantCashPageParam;
import com.xjoyt.pay.master.po.Cash;
import com.xjoyt.pay.master.po.CashDetail;
import com.xjoyt.pay.master.vo.CashMap;

public interface CashContract {

	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<CashMap> loadPage(PageParam<MerchantCashPageParam> param);

	@RequestMapping(value = "loadPageMap", method = RequestMethod.POST)
	PageResult<com.xjoyt.pay.master.vo.CashDetail> loadPageMap(PageParam<CashDetailPageParam> param);

	@RequestMapping(value = "check/{id}/{check}")
	ExecuteResult<Cash> check(@PathVariable("id") String id, @PathVariable("check") Boolean check);

	@RequestMapping(value = "cash", method = RequestMethod.POST)
	ExecuteResult<Cash> create(CashParam param);

	@RequestMapping(value = "cashSingle/{id}")
	ExecuteResult<CashDetail> cashSingle(@PathVariable("id") String id);
}
